package com.yuyou.train.user.service;

import com.yuyou.train.service.api.user.entity.UserPoints;
import com.yuyou.train.user.vo.resp.RespUserHw;
import com.yuyou.train.user.vo.resp.RespUserPointsTop;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

import java.util.List;


public interface IUserPointsService {
    int deleteByPrimaryKey(String id);

    int insert(UserPoints record);

    UserPoints selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserPoints record);

    int sumPointsByUserId(String userId, String action);

    List<RespUserPointsTop> findUserPointsTop(String classId);

    Integer myRank(String classId, String userId);
    
    ResBoolSimpleInfo<String> addPoints(String userId,String action,String remark,int points);

}